import request from "../request";

/**
 * 获取轮播图数据 GET
 * @getBannerList(url: stirng, params: object)
 * @return Promise
*/
export function getBannerList(url, params) {
  return request.get(url, { params })
}

/**
 * 新增轮播图数据 POST
 * @setBanner(url: stirng, params: object)
 * @return Promise
*/
export function setBanner(url, data) {
  return request({
    url,
    method: 'post',
    data
  })
}

/**
 * 删除轮播图数据 GET
 * @delBanner(url: stirng, params: object)
 * @return Promise
*/
export function delBanner(url, params) {
  return request.get(url, { params })
}